--book author Shenmon reprint please specify the source
Content Introduction
Objective
What is a shell?
Our first shell script
Run the shell script
Summarize
Part V Third lesson preview: variable in hand, shell not
ObjectiveThe shell script was recently restarted due to job requirements. Although most of the commands are often used by themselves, they are always hard to read when written in scripts. And I always find it hard to read when I look at scripts
LinuxShell script introduction Reading Notes Chapter 1 TestI. Introduction
1. Bash (Bourne Again Shell), which is currently the default shell environment for most GNU/Linux systems.
All commands are input and executed in the shell terminal. After
The habits to be cultivated are as follows:Code has comments #!/bin/bash# written by steven# Name: mysqldump.sh# Version: v1.0# Parameters: No # Function: Mysqldump backup mysql# Create Date: 2016-08-27 Indentation There are rules
In linux, # is used in Shell scripts to express comments, which is equivalent to the C language // comments. But if # is at the beginning of the first line and is #! (Shebang) is an exception. it indicates that the script uses the specified
Shell is like the editor: everyone has their own choice and tries to defend the choice (it also tells you why the choice should be used ). Indeed, s
Shell is like the editor: everyone has their own choice and tries to defend the choice (it also
Shell is like the editor: everyone has their own choice and tries to defend the choice and tell you why it should be used ). Indeed, shell provides different functions, but they all implement the core concept of development decades ago.
I used
Shell script Programming:Classification of programming languages: depending on how they are runCompile-and-run: Source code--compiler (compile)---Program files;Explanation Run: Source code-and run-time start interpreter, run by interpreter side
Shell Authoring Steps:1. Scripting Vim first.sh2. Write the complete test script Bash-n first.sh3. Granting permission chmod +x first.sh4. Execute the script./first.shPS Shell Script Learning first need to understand Linux, system commands and
First, Shell introductionThe role of the shell is to interpret the command that executes the user, and the user enters a command that the shell interprets as an "interactive" line. Another way to execute a command is "batch", where the user writes a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.